<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/gift.css" type="text/css" media="screen" charset="utf-8" />

 <link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<div class="content">
  <!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"><!-- 画布 begin  -->
    <div class="page_title">
    <!-- Begin 个人资料 -->
    <div class="left" style="width:66px;;"><span class="headpic50"><a href="__TS__/space/{$uid}"><img src="{$uid|getUserFace}"/></a></span></div>
      <div class="left">
      <h2>{$uid|getUserName}的礼品</h2>
      <p class="clear"><a href="__TS__/space/{$uid}">{$uid|getUserName}的个人空间</a> 
	  <a href="__ROOT__/index.php?s=/Notify/write/uid/{$uid}">发站内信</a>
	  <php>if($uid!=$mid){ </php>
	  <a href="__URL__/index/uid/{$uid}"><span>给{$uid|getUserName}送礼物</span></a>
	  <php> }　</php>
      </p>
    </div>
    <!-- #End 个人资料 -->
      <div class="c"></div>
    </div>
    <div class="tab-menu">
      <!-- 切换标签 begin  -->
      <ul>
        <li><a class="{$on1}" href="__URL__/personal/uid/{$uid}"><span>收到的礼物</span></a></li>
        <li><a class="{$on2}" href="__URL__/personal/isSend/1/uid/{$uid}"><span>送出的礼物</span></a></li>
      </ul>
	  
    </div> <!-- 切换标签 end  -->
	<div style="margin-left:20px;" class="gift_list">
	<volist name="gifts['data']" id='gift'>
	<div class="gift_box">
        	<div class="left" style="width:90px;"><img src="../Public/gift/{$gift.giftImg}" /></div>
            <div class="left" style="width:560px;">
			<php>if($gift['sendWay']==3) { </php>
			
				  <div class="lh20">神秘人物 	在 {$gift.cTime|friendlyDate} 花费了 {$gift.giftPrice}个{$config.creditName} 赠送给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>的礼物。 </div>
	              
				  <php>if($gift['toUserId']==$mid) { </php>
				  <div class="cGray2 lh30">				  
				  <php>echo getUserWo($gift['fromUserId'],$mid);</php>还给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>留言说：</div>
				  <div class="quote" style="margin:0;"><p>{$gift.sendInfo}<span class="quoteR">&nbsp;</span></p></div>
				  <php> } </php>
			<php> }elseif($gift['sendWay']==2) { </php>  
			
				  <div class="lh20">			  
				  <php>if($gift['toUserId']==$mid) { </php>
				  <a href="__TS__/space/{$gift.fromUserId}">{$gift.fromUserName}</a>
				  <php> }else{ </php>
					神秘人物
				  <php> } </php>
						  
				  在 {$gift.cTime|friendlyDate} 花费了 {$gift.giftPrice}个{$config.creditName} 赠送给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>的礼物。<br />
				  <php>if($gift['toUserId']==$mid) { </php>
					</div>
				  <div class="cGray2 lh30"><php>echo getUserWo($gift['fromUserId'],$mid);</php>还给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>留言说：</div>
				  <div class="quote" style="margin:0;"><p>{$gift.sendInfo}<span class="quoteR">&nbsp;</span></p></div>
				  <php> }else{ </php>
				      </div>
				  <php> } </php>
			<php>} else {</php> 
			  <div class="lh20"><a href="__TS__/space/{$gift.fromUserId}">{$gift.fromUserName}</a> 在 {$gift.cTime|friendlyDate} 花费了 {$gift.giftPrice}个{$config.creditName} 赠送给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>的礼物。<br /> 
                </div>
              <div class="cGray2 lh30"><php>echo getUserWo($gift['fromUserId'],$mid);</php>还给<a href="__TS__/space/{$gift.toUserId}">{$gift.toUserId|getUserName}</a>留言说：</div>
              <div class="quote" style="margin:0;"><p>{$gift.sendInfo}<span class="quoteR">&nbsp;</span></p></div>

			<php> } </php>
			  </div>
			  <div class="c"></div>            
        </div>
    </volist>
           <div id="Pagination" class="pagination">{$gifts.html}</div>
</div>
  </div><!-- 画布 end  -->
  <div class="c"></div>
</div>

<include file="__THEME__/footer" /> 